/**
 * @author Lisa
 */
$(document).ready(function(){
    jQuery(window).bind("load", function(){
        jQuery("div#slider1").codaSlider();
        // jQuery("div#slider2").codaSlider()
        // etc, etc. Beware of cross-linking difficulties if using multiple sliders on one page.
    });
      
    
});

function payAccount(){
     $.blockUI({
     message: $('#addChargeForm')
	  });
}
function cancelVIP() {
	 $.blockUI({
	     message: $('#cancelCertiForm')
		  });
}

/*
 * $('#rounded-corner').corner();
 */
function cancel(){
    $.unblockUI();
}

function clearText(field){
    if (field.defaultValue == field.value) 
        field.value = '';
    else 
        if (field.value == '') 
            field.value = field.defaultValue;
}

function showSchemaMap(){
    // window.open("index.jsp", "", "", true);
    window.location.href = "index.jsp";
    // window.location.assign("index.jsp");
    // window.location.replace("index.jsp");

}

function submitSearch(){
    if (document.getElementById("search") != null) {
    
        document.getElementById("search").submit();
    }
}

function submitFile(){
    if (document.getElementById("contactForm") != null) {
        alert("schedule");
        document.getElementById("contactForm").submit();
    }
}

function finishEdit(){
    document.getElementById("slices").finishEdit();
}
